<template>
  <div class="com-footer">
    <div class="footer-top container">
      <div class="list">
        <img :src="i1">
        <div class="right">
          <p class="p1">基地直供</p>
          <p class="p2">来自大凉山特色水果<br>原汁原味</p>
        </div>
      </div>
      <div class="list">
        <img :src="i2">
        <div class="right">
          <p class="p1">极速物流</p>
          <p class="p2">留住新鲜和美味</p>
        </div>
      </div>
      <div class="list">
        <img :src="i3">
        <div class="right">
          <p class="p1">基地+互联网</p>
          <p class="p2">省去中间商差价<br>让利给消费者</p>
        </div>
      </div>
      <div class="list">
        <img :src="i4">
        <div class="right">
          <p class="p1">400电话服务</p>
          <p class="p2">24小时为您守候</p>
        </div>
      </div>
      <div class="list">
        <img :src="i5">
        <div class="right">
          <p class="p1">特色服务</p>
          <p class="p2">私人定制服务</p>
        </div>
      </div>
    </div>
    <div class="footer-mid container">
      <div class="left">
        <div class="ewm">
          <img :src="ewm">
          <p>扫一扫 欢迎关注微信公众号</p>
        </div>
        <div class="left-right">
          <img :src="logo">
          <p>手机：13980287990</p>
          <p>邮箱：280964281@qq.com</p>
          <p>座机：0834-5116789</p>
          <p>地址：德昌县德州镇惠安街5幢63号</p>
        </div>
      </div>
      <div class="right">
        <div class="item" v-for="item in footnav" :key="item.id">
          <p class="p1">{{item.name}}</p>
          <router-link :to="{name:'info', query:{infoid: i.id}}" v-for="i in item.childlist" :key="i.id">{{i.name}}</router-link>
        </div>
        
      </div>
    </div>
    <div class="footer-down container">
      <p>蜀ICP备18019771号-1&nbsp;&nbsp;&nbsp;&nbsp;技术支持:<a href="http://www.cdsok.com.cn/" target="_blank">ISONIC索客</a></p>
      <p>凉山远瞻商贸有限公司版权所有</p>
    </div>
  </div>
</template>

<script>
import logo_img from '@/assets/image/logo.png'
import i1 from '@/assets/image/i1.png'
import i2 from '@/assets/image/i2.png'
import i3 from '@/assets/image/i3.png'
import i4 from '@/assets/image/i4.png'
import i5 from '@/assets/image/i5.png'
import ewm from '@/assets/image/ewm.png'
export default {
  name: 'App',
  data(){
    return{
      logo: logo_img,
      i1,i2,i3,i4,i5,ewm,
      footnav:[]
    }
  },
  props: ['islogin'],
  methods:{
    ss:function(){
      alert(this.search)
    }
  },                                                                                                
  created(){
    this.$http.get("/index.php/index/service/cateGoryList")
      .then(res => {
         this.footnav = res.data
        
      })
      .catch(error => {
        
      });
  }
}
</script>

<style scoped lang="less">
.com-footer{
  margin-top: 110px;
  width: 100%;
  background: #fff;
  .footer-top{
    height: 80px;
    .list{
      float: left;
      width: 20%;
      height: 100%;
      img{
        display: block;
        width: 72px;
        height: 72px;
        float: left;
      }
      .right{
        width: 154px;
        float: left;
        margin-left: 12px;
        .p1{
          font-size: 16px;
          color: #000;
          padding-top: 14px;
        }
        .p2{
          font-size: 14px;
          color: #3f3f3f;
          padding-top: 6px;
        }
      }
    }
  }
  .footer-mid{
    margin-top: 72px;
    height: auto;
    zoom: 1;
    overflow: hidden;
    .left{
      width: 478px;
      float: left;
      box-sizing: border-box;
      border-right: 1px solid #000;
      .ewm{
        width: 196px;
        float: left;
        img{
          width: 100%;
        }
        p{
          text-align:center;
          padding-top: 18px;
          font-size: 14px;
          color: #010101;
        }
      }
      .left-right{
        width: 254px;
        float: left;
        margin-left: 20px;
        img{
          display: block;
          width: 96px;
          margin-right: 0;
          margin-left: 34px;
        }
        p{
          font-size: 14px;
          color: #000;
          padding-top: 12px;
        }
      }
    }
    .right{
      width: 722px;
      float: right;
      .item{
        width: 92px;
        float: left;
        text-align: center;
        margin-left: 52px;
        .p1{
          font-size: 16px;
          color: #000;
          padding-bottom: 30px;
        }
        a{
          font-size: 14px;
          color: #000;
          margin-top: 10px;
          display: block;
        }
      }
    }
  }
  .footer-down{
    margin-top: 28px;
    p{
      font-size: 14px;
      color: #000;
      text-align: center;
      padding-bottom: 10px;
      a{
        font-size: 14px;
        color: #000;
        &:hover{
          color: #3fa33a;
        }
      }
    }
  }
}
</style>
